package com.meida.module.bus.provider.handler;

import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.interceptor.ExportInterceptor;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.module.bus.client.entity.BusProject;
import com.meida.module.bus.provider.service.BusProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
@Component(value = "busProjectExportHandler")
public class BusProjectExportHandler implements ExportInterceptor<BusProject> {
    @Autowired
    private BusProjectService busProjectService  ;
    @Override
    public ResultBody initData(Map params) {
        List<EntityMap> busproject = busProjectService.initData(params);
        return ResultBody.ok(busproject);
    }
}
